package com.feng.system.dto;

import com.feng.common.validation.constraints.OneOrZero;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Feng
 * @since 2022/4/19 21:14
 */
@Data
public class UserQueryParam {

    @ApiModelProperty(value = "模糊搜索关键字")
    String keyWord;

    @ApiModelProperty(value = "是否可登录管理系统")
    @OneOrZero(message = "isAdmin值只能是0或1")
    Integer isAdmin;

    @ApiModelProperty(value = "是否启用")
    @OneOrZero(message = "isEnabled值只能是0或1")
    Integer isEnabled;

}
